V2EX  ›  英汉词典

Activation Record

定义 Definition

activation record(也叫 stack frame,中文常译“活动记录/活跃记录/栈帧”):指程序中一次函数/过程调用在运行时为管理执行所分配的一块数据结构,通常包含返回地址、参数、局部变量、保存的寄存器、动态链/静态链等信息,多数情况下存放在调用栈上。

发音 Pronunciation (IPA)

/ˌæk.təˈveɪ.ʃən ˈrek.ɔːrd/

例句 Examples

The activation record stores local variables for a function call.
活动记录为一次函数调用保存局部变量。

In a language with nested functions, the activation record may include a static link so inner functions can access variables from enclosing scopes.
在支持嵌套函数的语言中,活动记录可能包含静态链,以便内部函数访问外层作用域的变量。

词源 Etymology

该术语来自编译原理与运行时系统领域:activation 表示一次函数/过程被“激活”(即开始执行的一次调用实例),record 指“记录/条目”。合起来强调:每次调用都会生成一条运行时记录,用来支撑调用、返回与作用域访问等机制。

相关词 Related Words

文学/经典著作中的用例 Literary / Notable Works

  • Compilers: Principles, Techniques, and Tools(Aho, Lam, Sethi, Ullman,“龙书”):在运行时存储管理与过程调用实现中讨论 activation record 的布局与访问。
  • Engineering a Compiler(Cooper & Torczon):介绍过程调用约定、栈管理,并使用 activation record 描述调用所需的数据结构。
  • Modern Compiler Implementation in C/Java/ML(Andrew W. Appel):在栈帧与过程抽象实现章节中使用 activation record/frame 的概念。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2172 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 11:54 · PVG 19:54 · LAX 03:54 · JFK 06:54
♥ Do have faith in what you're doing.